package com.xinchengxd.goods.service;



import com.xinchengxd.commons.entity.dto.GoodsNums;
import com.xinchengxd.commons.entity.goods.Goods;
import com.xinchengxd.commons.entity.goods.ShoppingCart;

import java.util.List;

/**
 * @author: 姚新成
 * @Date: 2021/11/9:0:14
 * @Description:
 */

public interface GoodsService {
    List<Goods> limit(Integer number);

    Goods findById(Integer id);

    int stock(Integer num,Integer id);

    List<Goods> findByList(List<GoodsNums> item);

    List<ShoppingCart> findCart(Integer userId);
}
